﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
using System.Windows.Forms;

namespace BMWKT
{
	internal static class Program
	{
		[STAThread]
		static void Main()
		{
			Application.EnableVisualStyles();
			Application.SetCompatibleTextRenderingDefault(false);
			new GetBMWKInstallPathForProcess(); 
			if (!GetBMWKInstallPathForProcess.IsUserGameConfig)
			{
				MessageBox.Show("未检测到黑神话悟空配置文件，请安装游戏并运行之后点击“刷新”按钮获取其相关的路径！", "初始化错误", MessageBoxButtons.OK, MessageBoxIcon.Error);
			}
			else if (!GetBMWKInstallPathForProcess.IsGetInstallPath)
			{
				MessageBox.Show("未检测到黑神话悟空正在运行，请运行之后点击“刷新”按钮获取其相关的路径！", "初始化错误", MessageBoxButtons.OK, MessageBoxIcon.Error);
			}
			Application.Run(new Home());
		}
	}
}
